var CANVAS_WIDTH = 400 , CANVAS_HEIGHT = 400;
var mycanvas;
var stage;
var txt;
var count = 0;
window.onload = function (){
    mycanvas = document.getElementById('mycanvas');
    mycanvas.width = CANVAS_WIDTH;
    mycanvas.height = CANVAS_HEIGHT;
    stage = new createjs.Stage(mycanvas);
    txt = new createjs.Text("numble->","20px Arial","skyblue");
    stage.addChild(txt);
    createjs.Ticker.setFPS(10);
    createjs.Ticker.addEventListener("tick",handleTick);
};
function handleTick(event){
    count++;
    txt.text = "numble->"+count+"!";
    stage.update(event);
}